/**
 * Copyright (C), 2015-2018, 北京译泰教育科技有限公司
 * FileName: Param
 * Author:   andy
 * Date:     18/1/28 下午6:34
 * Description: ${DESCRIPTION}
 * History:
 */
package org.smart4j.framework.bean;

import java.util.Map;

import org.smart4j.framework.util.CastUtil;

/**
 * 请求参数对象<br>
 *
 * @author andy
 * @version V1.0
 * @date 18/1/28 下午6:34
 */
public class Param {

    private Map<String, Object> paramMap;

    public Param(Map<String, Object> paramMap) {
        this.paramMap = paramMap;
    }

    public Map<String, Object> getParamMap() {
        return paramMap;
    }

    public long getLong(String name) {
        return CastUtil.castLong(paramMap.get(name));
    }

}
